package com.ithome.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

/**
 * @author TRasdzz
 * @date 2020/6/19 10:12
 */
@Controller
public class RoteController {
    @RequestMapping("/TRasdzz")
    public String TRasdzz(Model model){
        model.addAttribute("msg","<h1>hello TRasdzzz</h1>");
        model.addAttribute("users", Arrays.asList("TRasdzz","TR"));
        return "TRasdzz";
    }

    @RequestMapping("/header")
    public String header(){
        return "header";
    }

    @RequestMapping("/footer")
    public String footer(){
        return "footer";
    }
    @RequestMapping("/search")
    public String search(){
        return "search";
    }
    @RequestMapping("/right")
    public String right(){
        return "right";
    }
}
